# 基础镜像
FROM openjdk:11
# 复制打包完成后的jar文件到/opt目录下
COPY sba-server.jar /opt/sba-server.jar
#挂载点，开启了log文件挂载点 对应logback.xml->log_home
#VOLUME ["/mktzr/act-mgt/logs"]
#容器的时区设置
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
# 启动容器时执行
ENTRYPOINT ["nohup","java","-Dloader.path=/opt/libs","-Dspring.profiles.active=test","-jar","/opt/sba-server.jar","&"]
# 使用端口11000
EXPOSE 1100

